package com.lanou.dllo.findfood.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by dllo on 15/11/2.
 */
public class DateUtils {


    private static SimpleDateFormat sf=null ;
    /*获取系统时间 格式为："yyyy/MM/dd "*/
    public static String getCurrentDate() {
        Date d = new Date();
        sf = new SimpleDateFormat("yyyy年MM月dd日");
        return sf.format(d);
    }

    /*时间戳转换成字符窜*/
    public static String getDateToString(long time) {
        Date d = new Date(time);
        sf = new SimpleDateFormat("yyyy年MM月dd日");
        return sf.format(d);
    }


}
